Skip to content

Conversation

@apple1417
Copy link
Contributor

fixes #67

I still don't fully understand how the nulls are supposed to work in these things
a lot of base unreal stuff is happy with empty array == empty string however - so can avoid the allocation

this is also helping get a byte-perfect copy between two structs (which had empty strings in them) for some other stuff I was looking into
this makes it consistent with malloc
unfortunately can't put this logic in realloc, since we don't know the original size, but this is the only use of it

this is also helping get a byte-perfect copy between two structs (which had unused padding bytes) for some other stuff I was looking into
passing the wrong element size meant any array of 12/16 byte elements or larger, if it had to resize, didn't request enough memory
some of these changes downstream never made it back up here
@apple1417 apple1417 merged commit 2520d5f into bl-sdk:master Apr 25, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copying BodyCompositionData "Attachments" struct data causes a full crash

1 participant